package com.api.gbhg.liuwenbo.test;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.Map;

public class a4_8 {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        String formatDate = now.format(DateTimeFormatter.ISO_DATE);
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        String strDate = LocalDate.now().format(dateTimeFormatter);
        System.out.println(strDate);
        Map<String,Object> map = new HashMap<>();
        map.put("a","123");
        System.out.println(map.containsKey("c")?"aaa":"bbb");
    }
}
